﻿@model CommerceOne.Domains.Entities.Product
           


<div><a href="/@Model.Id/Product"><img src="@Model.ProductImage" width="240px" height="200px"/></a></div>
<div>Code: @Model.Code</div>
<div>@Model.Name</div>
@if (Model.EnablePrice2)
{
    <div ><span style="text-decoration:line-through;">@Model.Price1</span> - <span>@Model.Price2</span></div>
}
else
{
    <div>@CommerceOne.Common.DisplayUtil.GetDisplayPrice(Model.Price1)</div>
}
<div><img src="@Model.Rating"  height="20px"/></div>

@using(Html.BeginForm("AddToCart", "Cart")) { 
        @Html.HiddenFor(x => x.Id) 
        @Html.Hidden("returnUrl", Request.Url.PathAndQuery) 
        <input type="submit" value="+ Add to cart" /> 
    }